//
//  Color.m
//  HomeWork-04
//
//  Created by dllo on 16/7/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Color.h"

@implementation Color
- (instancetype)initWithName:(NSString *)name colorVlaue:(NSString *)colorValue {
    self = [super init];
    if (self) {
        _name = name;
        _colorVlaue = colorValue;
    }
    return self;
}
+ (instancetype)colorWithName:(NSString *)name colorValue:(NSString *)colorValue {
    return [[Color alloc]initWithName:name colorVlaue:colorValue];
}
- (NSString *)description {
    return [NSString stringWithFormat:@"%@  %@",self.name,self.colorVlaue];
}
@end
